package com.koron.car.web.lend.bean.entity;

import com.koron.car.web.common.UpdateParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("车辆借出")
public class CarLend implements Serializable, UpdateParameter {

    private static final long serialVersionUID = 987108124092277746L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("借出车辆id")
    private String carId;

    @ApiModelProperty("借出车辆车牌号")
    private String licPlateNum;

    @ApiModelProperty("借出时间")
    private Date lendTime;

    @ApiModelProperty("借出单位id")
    private String orgId;

    @ApiModelProperty("借出单位名称")
    private String orgName;

    @ApiModelProperty("借出经办人id")
    private String loanAgentId;

    @ApiModelProperty("借出经办人id")
    private String loanAgentName;

    @ApiModelProperty("接收单位名称")
    private String receiveOrgName;

    @ApiModelProperty("接收经办人")
    private String receiver;

    @ApiModelProperty("预计借用天数,单位：天")
    private Double expectBorrowTime;

    @ApiModelProperty("借用状态, 字典：car_lend_state")
    private String state;

    @ApiModelProperty("验收人id")
    private String acceptId;

    @ApiModelProperty("验收人名称")
    private String acceptName;

    @ApiModelProperty("归还时间")
    private Date returnTime;

    @ApiModelProperty("实际天数")
    private Double factBorrowTime;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人账号")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "主表需要部门字段，用于数据权限")
    private String deptId;
}
